﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ZH.Infrastructure.Dto.Response.Tech;
using ZH.Service.Interface;

namespace ZH.Api.Admin.Controllers.Cashier
{
    /// <summary>
    /// 收银端·技法/服务
    /// </summary>
    [Authorize(Roles = "Cashier")]
    public class C_TechniqueController : BaseController
    {
        public readonly I_Tech_Service _tech_Service;

        public C_TechniqueController(I_Login_Service login_Service,I_Tech_Service tech_Service) : base(login_Service)
        {
            _tech_Service = tech_Service;
        }

        /// <summary>
        /// 获取技法列表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> Get_Cashier_Tech() 
        {
            var result = await _tech_Service.Get_Cashier_Tech();
            
            return Ok(result);
        }
    }
}
